package com.lingdong.onlinejudge.mapper;

import com.lingdong.onlinejudge.model.dto.submit.SumSubmitExpGroupByUserDto;
import com.lingdong.onlinejudge.model.entity.Submit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author lzw
* @description 针对表【submit】的数据库操作Mapper
* @createDate 2024-02-12 20:50:50
* @Entity com.lingdong.onlinejudge.model.entity.Submit
*/
public interface SubmitMapper extends BaseMapper<Submit> {

    /**
     * 根据比赛id ,用户分组求和分数
     * @param matchId
     */
    List<SumSubmitExpGroupByUserDto> selectSumExpGroupByUser(long matchId);


    /**
     * 根据比赛id ,用户分组求和分数
     * @param matchId
     */
    List<Submit> selectSubmitList(long matchId,long topicId);


}




